package com.yang.controller;

import com.yang.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author: YANG QIANG
 * @Time: 2022-12-04 15:35
 */
@Controller
public class BookController {

    @Autowired
    private IBookService bookService;

    @RequestMapping("/test")
    public String Test(){

        bookService.test();

        bookService.getBook();

        return "forward:/index.jsp";
    }
}
